package com.tfj.mvp.tfj.home.shop;

import android.os.Bundle;
import android.widget.TextView;

import com.hyphenate.tfj.R;
import com.tfj.mvp.base.BaseActivity;
import com.tfj.mvp.tfj.home.shop.adapter.JingjiAdapter;
import com.tfj.mvp.tfj.home.shop.bean.ShopJingJIBean;

import java.util.ArrayList;
import java.util.List;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;

public class VJingjiListActivity extends BaseActivity {
    @BindView(R.id.recyclew_content)
    RecyclerView recyclewContent;
    @BindView(R.id.textView_count)
    TextView textViewCount;

    @Override
    public int setContentViewId() {
        return R.layout.activity_jingji_list;
    }

    @Override
    protected void initView() {
        super.initView();
        setTitleText("经纪人");
        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
        recyclewContent.setLayoutManager(linearLayoutManager);
        JingjiAdapter jingjiAdapter = new JingjiAdapter(this);
        recyclewContent.setAdapter(jingjiAdapter);
        List<ShopJingJIBean> shopJingJIBeanList = new ArrayList<>();
        shopJingJIBeanList.add(new ShopJingJIBean());
        shopJingJIBeanList.add(new ShopJingJIBean());
        shopJingJIBeanList.add(new ShopJingJIBean());
        shopJingJIBeanList.add(new ShopJingJIBean());
        shopJingJIBeanList.add(new ShopJingJIBean());
        shopJingJIBeanList.add(new ShopJingJIBean());
        shopJingJIBeanList.add(new ShopJingJIBean());
        jingjiAdapter.replaceData(shopJingJIBeanList);
    }

    @Override
    public void createPresenter() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
